<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录</title>
    <link rel="stylesheet" href="../static/css/style.css">
    <link rel="stylesheet" href="../static/css/login.css">
</head>
<body>
    <div class="container">
        <h2>用户登录</h2>
        <form action="/login" method="post">
            <div>
                <h4>{{h}}</h4>
                <label for="username">用户名：</label>
                <input type="text" id="username" name="username">
            </div>
            <div>
                <label for="password">密码：</label>
                <input type="password" id="password" name="password">
            </div>
            <div>
                <input type="submit" value="登录">
            </div>
        </form>
        <div class="link">
            <p>还没有账号？<a href="/register">注册</a></p>
            <p>要改密码？<a href="/change_password">修改密码</a></p>
            <p>忘记密码？<a href="/change_password">找回密码</a></p>
        </div>
    </div>
</body>
</html>
<!-- <!DOCTYPE html>
<html lang="en">
<head>
    <script src="../static/js/jquery-3.6.0.min.js"></script>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录</title>
    <link rel="stylesheet" href="../static/css/style.css">
    <link rel="stylesheet" href="../static/css/login.css">
 
</head>
<body>
    <h2>用户登录</h2>
    <form action="/login" method="post">
        <div>
            <h4>{{h}}</h4>
            <label for="username">用户名：</label>
            <input type="text" id="username" name="username">
        </div>
        <div>
            <label for="password">密码：</label>
            <input type="password" id="password" name="password">
        </div>
        <div>
            <input type="submit" value="登录">
        </div>
    </form>
    <div>
        <p>还没有账号？<a href="/register">注册</a></p>
        <p>要改密码？<a href="/change_password">修改密码</a></p>
        <p>忘记密码？<a href="/change_password">找回密码</a></p>
    </div>
</body>
</html> -->

   <!-- <style>
        body {
            font-family: Arial, sans-serif;
            text-align: center;
            padding: 50px;
        }
        form {
            display: inline-block;
            padding: 20px;
            border: 1px solid #ccc;
            border-radius: 5px;
            background-color: #f4f4f4;
        }
        input[type="text"],
        input[type="password"],
        input[type="submit"] {
            padding: 10px;
            margin: 5px;
            width: 200px;
            display: block;
        }
        input[type="submit"] {
            background-color: #4CAF50;
            color: white;
            border: none;
            cursor: pointer;
        }
        a {
            text-decoration: none;
            color: #4CAF50;
        }
        h4{
            color: red;
        }
    </style> -->